package chapter4.No4_1_使用reentrantLock类.demo8;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/21 0021
 */
public class ThreadC extends Thread {
    C c;

    public ThreadC(C c) {
        this.c = c;
    }

    @Override
    public void run() {
        try {
            while (true) {
                c.xf();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
